package psc.model.dao.transacao;

import java.util.List;

import javax.persistence.EntityManager;

import org.hibernate.criterion.Order;

import psc.model.base.transacao.Extrato;
import psc.model.dao.DaoGeral;

public class DaoExtrato extends DaoGeral<Extrato, Integer> {

	public DaoExtrato(EntityManager manager) {
		super(manager);

	}

	public List<Extrato> buscarIntervaloData(Extrato extrato) {
		return this.buscarIntervaloData(Extrato.class, "data_operacao",
				extrato.getDataInicial(), extrato.getDataFinal(),
				Order.desc("data_operacao"));
	}

}
